import 'package:dio/dio.dart';
import 'package:flutter/material.dart';
import 'package:local_coffee/request/routers.dart';

class RqtDiscounts {
  
  final Dio _dio;

  RqtDiscounts(
    this._dio
  );

  /// 我的优惠券
  /// ```
  /// @params {int} status 优惠券状态: 0: 正常; 1: 失效; 2: 过期已结束; 3: 已使用;
  /// ```
  my({
    @required int status
  }) {
    return _dio.get(Routers.discountsMy);
  }

}